package org.jeecg.modules.scm.api.fallback;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.modules.scm.api.ScmInvItemRsApi;
import org.jeecg.modules.scm.dto.EditInvItemRsDto;
import org.springframework.stereotype.Component;

/**
 * @author zyf
 */
@Component
@Slf4j
public class ScmInvItemRsFallback implements ScmInvItemRsApi {
    @Setter
    private Throwable cause;

    @Override
    public Result<?> edit(EditInvItemRsDto dto) {
        throw new JeecgBootException("更新失败");
    }
}
